package com.zm.bean;

/**
 * Created by zcx on 2017/7/20.
 */
public enum CodeEnum {


    SUCCESS(200, "请求成功"),
    FAIL(-1, "请联系管理员"),
    SYSTEM(-2, "系统繁忙，请稍后再试"),

    /*用户code*/
    _6000(6000, "userId不正确"),
    _6001(6001, "userName不正确"),
    _6002(6002, "用户已存在"),
    _6003(6003, "用户不存在"),
    _6004(6004, "用户名不能为空"),
    _6005(6005, "信息不能为空"),
    _6006(6006, "非法注册"),
    _6007(6007, "获取用户详情失败，请稍后再试"),
    _6008(6008, "获取用户列表失败或暂无用户列表，请稍后再试"),
    _6009(6009, "token不存在！"),
    _6010(6010, "请输入支付密码！"),
    _6011(6011, "两次输入密码不一致"),
    _6012(6012, "原支付密码不正确"),

    /*角色code*/
    _6100(6100, "角色不存在"),
    _6101(6101, "roleId不正确"),
    _6102(6102, "roleId不正确"),
    _6103(6103, "roleName不正确"),
    _6104(6104, "roleParentId不正确"),
    _6105(6105, "roleParentId不存在"),
    _6106(6106, "roleId与roleParentId冲突"),

    /*分类code*/
    _6200(6200, "categoryId不正确"),
    _6201(6201, "categoryParentId不正确"),
    _6202(6202, "分类不存在"),
    _6203(6203, "分类已存在"),
    _6204(6204, "categoryName不正确"),
    _6205(6205, "categoryParentId不存在"),
    _6206(6206, "categoryId与categoryParentId冲突"),

    /*产品code*/
    _6300(6300, "productId不能为null"),
    _6301(6301, "找不到产品"),
    _6302(6302, "productName不能为null"),
    _6303(6303, "categoryId不能为null"),
    _6304(6304, "productUnit不能为null"),


    /*密码相关*/
    _6400(6400, "密码不能为空"),
    _6401(6401, "密码长度必须大于6个字符"),
    _6402(6402, "密码错误，请检查后重新输入"),
    _6403(6403, "原密码不能为空"),
    _6404(6404, "原密码不正确"),
    _6405(6405, "2次输入的密码不一致"),
    _6406(6406, "新密码不能为空"),
    _6407(6407, "密码长度为8-20位"),
    /*手机号相关*/
    _6500(6500, "手机号格式不正确"),
    _6501(6501, "手机号不能为空"),
    _6502(6502, "手机号不正确"),
    _6503(6503, "手机号已存在"),


    /*验证码相关*/
    _6600(6600, "验证码以过期"),
    _6601(6601, "验证码不正确"),

    /*收发地址相关*/
    _6700(6700, "暂无收货地址"),
    _6701(6701, "暂无发货地址"),
    _6702(6702, "地址不能为空"),
    _6703(6703, "街道不能为空"),
    _6704(6704, "请选中一条您要删除的地址"),

    /*寄件记录相关*/
    _6800(6800, "订单号不存在！"),
    _6801(6801, "未获取到快递公司信息，请稍后再试！"),
    _6802(6802, "网络繁忙，请稍后再试！"),
    _6803(6803, "请输入取件码"),
    _6804(6804, "无法获取订单"),
    _6805(6805, "请输入正确的取件码"),
    _6806(6806, "暂无订单"),
    _6807(6807, "补价订单号不存在！"),
    _6809(6809, "此订单已补价！"),
    _6810(6810, "通票订单不存在！"),


    /*派单相关*/
    _7000(7000, "未获取到相关快递员位置，请稍后再试"),
    _7001(7001, "无派单记录"),
    _7002(7002, "非法操作"),
    _7003(7003, "支付成功但暂无快递员"),
    _7004(7004, "此单已派送"),

    /*审核相关*/
    _8000(8000, "未提交审核"),

    /*支付相关*/
    _9001(9001, "取消支付"),
    _9002(9002, "提现失败，余额不足"),
    _9003(9003, "支付失败"),
    _9004(9004, "支付失败,余额不足"),

    /*评论相关*/
    _10001(10001, "暂无印象"),


    /*评论相关*/
    _10010(10010, "暂无优惠券"),

    //面单相关
    _10020(200, "面单已生成，请勿重复提交"),

    //参数相关
    _99999(99999, "缺少必要参数"),
    //
    ;

    int code;

    String message;

    CodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }



    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
